package com.qf.controller;

import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 汤奇
 * @version V1.0
 * @Project BookPro
 * @Package com.qf.controller
 * @Description:
 * @Date 2022/7/12 13:17
 */
@RestController
@RequestMapping("/a")
public class AController {

    @Autowired
    private UserService userService;

    /**
     * 整套转账流程,a账户-500, b账户+500
     */
    @RequestMapping("/test")
    public void test(){
        userService.aReduce();
    }
}
